package com.atguigu.spzx.user.service.impl;

import com.atguigu.spzx.model.entity.user.Region;
import com.atguigu.spzx.user.mapper.RegionMapper;
import com.atguigu.spzx.user.service.UserRegionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRegionServiceImpl implements UserRegionService {
    @Resource
    RegionMapper regionMapper;
    @Override
    public List<Region> findByParentCode(Long parentId) {
        return regionMapper.findByParentCode(parentId);
    }
}
